﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="RejectList.ascx.cs"
    Inherits="NCS.Module.CMS.Admin.WorkFlow.RejectList" %>
<%@ Register Assembly="NCS.Library" Namespace="NCS.Library.Controls"
    TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="uppanelWaitingDistribution" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <triggers>
        <asp:AsyncPostBackTrigger ControlID="dropZones" EventName="SelectedIndexChanged" />
        <asp:AsyncPostBackTrigger ControlID="dtgRejectList" EventName="RowCommand" />
    </triggers>
    <contenttemplate>
        <table id="Table1" align="center" cellpadding="3" cellspacing="0" width="100%">
    <tr><td colspan=2 ><asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label></td></tr>
	<tr>
		<td width="80">
			<b>Chuyên mục</b></td>
		<td>
			<asp:DropDownList ID="dropZones" runat="server" AutoPostBack="True" Width="480px">
			</asp:DropDownList></td>
	</tr>
	<tr>
		<td colspan="2">
			<cc1:GridView ID="dtgRejectList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
				PageSize="15" Width="100%" OnRowCommand="dtgRejectList_RowCommand" OnRowDataBound="dtgRejectList_RowDataBound">
				<AlternatingRowStyle CssClass="Grid_Raw2" />
                            <RowStyle CssClass="Grid_Raw1" />
                            <HeaderStyle Font-Bold="True" CssClass="Grid_Top"></HeaderStyle>
				<Columns>
					<asp:BoundField DataField="Content_ID" HeaderStyle-Width="5%" HeaderText="ID" Visible="False" />
					<asp:TemplateField HeaderText="Tên bài">
						<ItemTemplate>
							<asp:HyperLink ID="lnkHeadline" runat="server"></asp:HyperLink>
						</ItemTemplate>
					</asp:TemplateField>
					<asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="150px"
						HeaderText="Thao tác" ItemStyle-HorizontalAlign="Center">
						<ItemTemplate>
							<asp:Button ID="Button1" runat="server" CommandName="deploy" CommandArgument='<%# Eval("Content_ID") %>' CssClass="Button"
								Text="Gửi lên" />
							<asp:Button ID="Button2" runat="server" CommandArgument='<%# Eval("Content_ID") %>'
								CommandName="editcontent" CssClass="Button" Text="Sửa" />
							<asp:Button ID="cmdDel" runat="server" CommandArgument='<%# Eval("Content_ID") %>'
								CommandName="deletecontent" CssClass="Button" Text="Xóa" />
						</ItemTemplate>
					</asp:TemplateField>
				</Columns>
			</cc1:GridView>
		</td>
	</tr>
</table>
    </contenttemplate>
</asp:UpdatePanel>